package com.hwz.gulimall.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hwz.common.utils.PageUtils;
import com.hwz.gulimall.product.entity.AttrEntity;
import com.hwz.gulimall.product.vo.AttrRespVO;
import com.hwz.gulimall.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author hwz
 * @email 1281561921@qq.com
 * @date 2025-05-27 22:49:35
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, String cateLogId, String attrType);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    Page getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    void save(AttrVO attr);

    AttrRespVO getDetailById(Long attrId);
    void editById(AttrVO attr);

    List<Long> selectSearchAttrs(List<Long> attrIds);
}

